package com.modificial.shiro.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author modificial
 * @date 2018/8/5 0005
 * @company modificial_org
 * @description
 */
@Data
@ToString
public class JsonResult implements Serializable {
    /**
     * 返回状态码
     */
    private int  code;
    /**
     * 返回信息
     */
    private String message;
    /**
     * 成功或失败
     */
    private int  success;

    /**
     * 返回数据
     */
    private  Object data;

    public JsonResult(int code,String message,int success){
        this.code=code;
        this.message=message;
        this.success=success;
    }

    public static void main(String[] args) {
        System.out.println("1ADVhtKQYXXY86VCV7K5SaSAeMttxNtTKX".length());
    }
}
